home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: artemis.sto.fdata.se!news
- From: Niklas Mellin <niklas.mellin@sto.fdata.se>
- Subject: Re: Simple Question seeks simple answer
- Sender: news@artemis.sto.fdata.se (UseNet NetNews)
- Message-ID: <3172424F.591B@sto.fdata.se>
- Date: Mon, 15 Apr 1996 12:34:23 GMT
- Content-Transfer-Encoding: 7bit
- Content-Type: text/plain; charset=us-ascii
- References: <DpwFCI.xu.0.-s@cs.vu.nl>
- Mime-Version: 1.0
- X-Mailer: Mozilla 2.0 (WinNT; I)
- Organization: WM-data F÷rsvarsdata AB, Sweden
-
- Lassche MA wrote:
- >
- > I'm skipping from 16bit to 32bit, there are some minor problems which I
- > cannot solve nor does the 'whelp cguide'.
- >
- > In 16 bits it was common practice to do the well known string copy
- > something like
- > mov es,x
- > mov di,y
- > mov cx,z
- > mov es:[di],x1
- > rep movsd.
-
- Not common practice in C++ I hope...
-
- [ more assambly code deleted... ]
-
- > Question [(1)] how to do a string copy 32 bits - wise ?
-
- Can't get any simpler than this:
-
- strcpy(dest, source); // Works fine on all C and C++ compilers
-
- > Something which looks the same.
- >
- > To get the VESA info you've got to call int 10H with arguments AH = 4fh
- > and AL = 00H and ES:DI being the pointer to put the junk. Once more
- > how's this done in 32 bit.
-
- [ More non C++ stuff deleted ]
-
- > Any bright ideas people ?
-
- Maybe this should have been posted on some other news group since
- it doesn't seem to be about C++.
-
- ---
- Niklas Mellin
-